<template>
  <div>
    <div>
      <button @click="toMusic">music</button>
      <button @click="toNews(1)">news1</button>
      <button @click="toNews(2)">news2</button>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "App",
  methods: {
    toMusic() {
      this.$router.push("/music");
    },
    toNews(id) {
      this.$router.push(`/news/${id}`);
    },
  },
};
</script>

<style></style>
